
export default ({ app: { $request } }, inject) => {
  inject('api', {
    getTechnicalClassifyList(params = {}) {
      return $request.get('/home/category', params);
    },
    getRticleRankList(params = {}) {
      return $request.get('/home/article_rank', params);
    },
    getSelectedRankList(data = {}) {
      return $request.post('/home/selected_rank', data);
    },
    getCollectionRankList(data = {}) {
      return $request.post('/home/collection_recommend_rank', data);
    },
    getRecommendAllFeedList(data = {}) {
      return $request.post('/home/recommend_all_feed', data);
    },
  })
}